package com.topscomm.main.config;

import com.topscomm.tap.common.DatacodeCache;
import com.topscomm.tap.common.LocalDataCodeCache;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.Scope;
import org.springframework.core.annotation.Order;

@Configuration
public class ResetDataCodeCacheConfig {
    @Order(0)
    @Primary
    @Bean
    @Scope(value = "prototype")
    public DatacodeCache datacodeCache() {
        return new LocalDataCodeCache();
    }
}

